﻿<UserControl x:Class="NavigationModule.Views.LeftSideNavigationView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    
    
    <Grid VerticalAlignment="Top" HorizontalAlignment="Left" Margin="15">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
        </Grid.RowDefinitions>

        <Border Grid.Column="0" Grid.Row="0">
            <DataGrid ItemsSource="{Binding Links}" 
                      HeadersVisibility="None"
                      AutoGenerateColumns="False"
                      SelectionMode="Single" 
                      Cursor="Hand"
                      CanUserAddRows="False" 
                      CanUserDeleteRows="False"
                      SelectionChanged="DataGrid_SelectionChanged"
                      MouseLeftButtonDown="DataGrid_MouseLeftButtonDown">
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding Display}" IsReadOnly="True" />
                </DataGrid.Columns>
            </DataGrid>
        </Border>
    </Grid>
</UserControl>
